from django.urls import path,re_path

# from .views import RegisterView
# from . import views
from users import views

app_name = 'users'

urlpatterns = [
    # 用户注册  reverse(users:register) == "/register/"
    path("register/", views.RegisterView.as_view(),name="register"),
    # 判断用户名是否重复注册
    # path("usernames/<str:username>/count)",views.check_username),
    re_path(r"usernames/(?P<username>[a-zA-Z0-9]{5,20})/count/$",views.UsernameCountView.as_view()),
    # 用户登录
    path("login/",views.LoginView.as_view(),name="login"),

]